import request from "../utils/request";

export function subLogin(ruleForm){
    return request({
        url: '/ses/mdStoreUser/login',
        method: 'post',
        data: ruleForm
    })
}


export function selectAll() {
    return request({
        url: '/ses/mdStorefirst/selectAllServe',
        method: 'get',
    });
}

export function insertServe(userFrom) {
    return request({
        url: '/ses/mdStorefirst/insertOne',
        method: 'post',
        data: userFrom
    });
}

export function deleteServe(row) {
    return request({
        url: '/ses/mdStorefirst/delect/'+row.firstId,
        method: 'get',
    });
}

export function count(firstId) {
    return request({
        url: '/ses/mdSf/countFirstServe',
        method: 'get',
        params:{
            firstId 
        }
    });
}